package xcmg.device.service;

import org.springframework.stereotype.Service;

/**
 * Created by john on 2017/10/13.
 */
@Service
public class DemoService {
//    @Autowired
//    EmployeeMapper employeeMapper;
//
//    public int addPersional(){
//        EmployeeDO employeeDO = new EmployeeDO();
//        employeeDO.setName("fast platorm");
//        employeeDO.setSalary(BigDecimal.valueOf(3600.00));
//        int count = employeeMapper.insert(employeeDO);
//        if(count <=0 ){
//            return 0;
//        }
//
//        return employeeDO.getId();
//
//    }
//    public EmployeeVO getPerosonById(int id){
//        EmployeeDO employeeDO = employeeMapper.selectByPrimaryKey(id);
//        EmployeeVO employeeVO= new EmployeeVO();
//        employeeVO.setId(employeeDO.getId());
//        employeeVO.setName(employeeDO.getName() + " Lee");
//        employeeVO.setSalary(employeeDO.getSalary());
//        return  employeeVO;
//    }
//    public int updatePersonal(int id, String name){
//        EmployeeDO employeeDO = new EmployeeDO();
//        employeeDO.setId(id);
//        employeeDO.setName(name);
//
//        return employeeMapper.updateByPrimaryKeySelective(employeeDO);
//    }
}
